package com.heima.feign.article;

import com.heima.model.article.dtos.ArticleDto;
import com.heima.model.common.dtos.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("leadnews-article")
@RequestMapping("/api/v1/article")
public interface IArticleClient {

    @PostMapping("/save")
    ResponseResult saveArticle(@RequestBody ArticleDto articleDto);
}
